package ruc.Consts;

public class constant {
    //Common，filepath的路径需要根据不同用户进行调整
    public static String Read_filePath_format = "/Users/zhaohao/TSBench-D/src/main/resources/RawData/broker%d.csv";
    public static String Write_filePath_format = "/Users/zhaohao/TSBench-D/src/main/resources/Result/%s/%s.csv";
//    public static String Read_filePath_format = "src/main/resources/RawData/broker0.csv";
//    public static String Write_filePath_format = "/Users/bytedance/TSBench-D/src/main/resources/Result/%s/%s.csv";
    public static String Delimiter = ":";
    public static String IP = "124.71.232.37";
    public static int[] ConWrite_Thread = new int[]{4, 8, 16, 32, 64, 128, 256};
    public static int[] DiffRecordLength = new int[]{1024, 4096};
    public static int[] MutiTable_TableNum = new int[]{1, 10, 40, 60, 80, 100};
    public static int[] RecordNum = new int[] {10,100,1000,10000};
    public static int[] ConcurrentReadThreadNum = new int[]{1, 10, 50, 100, 200};
    public static final int Ns2Ms = 1000000;
    public static final String dbName = "ruc";
    public static final String[] server = new String[]{"SYS.ECS", "AGT.ECS", "SERVICE.BMS", "SYS.AS", "SYS.EVS",
            "SYS.OBS", "SYS.SFS", "SYS.EFS", "SYS.VPC", "SYS.ELB", "SYS.NAT", "SYS.VPN", "SYS.CC", "SYS.DCAAS", "SYS.DMS",
            "SYS.DCS", "SYS.RDS", "SYS.DDS", "SYS.NoSQL", "SYS.ES", "SYS.ModelArts", "SYS.DLI"};
    public static String Concurrent_tbName = "TSBenchD_Concurrent";
    public static String DifferentRecordWrite_tbName = "TSBenchD_DifferentRecordWrite";
    public static String MultiTableWrite_tbName = "TSBenchD_MultiTableWrite";
    public static final int bound = 15000;

    public static String GetWriteFilePath(String folderName, String fileName){
        return String.format(Write_filePath_format, folderName, fileName);
    }

    public static String GetReadeFilePath(int brokerID) {
        return String.format(Read_filePath_format, brokerID);
    }

    //DolphinDB
    public static final int DolphinDB_Port = 8848;

    //InfluxDB
    public static String InfluxDB_Port = "8086";

    //TDEngine
    public static String TDEngine_port = "6041";
    public static String userName = "root";
    public static String passWord = "taosdata";
    public static final int threshold = 3000;

    //MongoDB
    public static final int MongoDB_port = 9426;
}
